home *** CD-ROM | disk | FTP | other *** search
- /*
- * ToolFrontEnd.h - Tool Server Front End Drop-In Preferences
- */
-
- #ifndef _H_ToolFrontEnd
- #define _H_ToolFrontEnd
-
- #ifndef __TYPES__
- #include <Types.h>
- #endif
-
- #include "DropInCompiler.h"
-
-
- #pragma options align=mac68k
-
-
- /* this is the name of the panel, as shown in the Finder */
- #define kToolFrontEndPanelName "\pToolFrontEnd Panel"
-
-
- /*
- * AppleScript dictionary info.
- */
-
- enum {
- /* Symbolic Name Code AETE Terminology */
- class_ToolFrontEnd = 'TSFE',
-
- prefsTFE_IncludeFile = 'TF01', /* Project Type */
- prefsTFE_FileExtension = 'TF02', /* Project Type */
-
- /* enumeration for file extension */
- enumeration_FileExtension = 'TF03',
- enum_Extension_String = 'TF04', /* extension string */
- enum_Extension_Command = 'TF05', /* command string */
- enum_Extension_Scanner = 'TF06', /* scanner */
- enum_Extension_IncParam = 'TF07' /* include parameter */
- };
-
-
- /* This is the structure that is manipulated by the panel. */
-
- typedef struct ToolFrontEndPref {
- short version; /* version # of prefs data */
- Str255 scriptIncludeFile; // the name of the script include file
- short numExtensions; // number of extensions
- struct ExtensionEntry
- {
- Str15 extension; // extension of these files
- Str31 scanner; // scanner for include files
- Str15 includeFileArg; // argument prefix for an include file
- Str255 commandTemplate; // template command for ToolServer
- } extensions[1]; // array of extensions -- variable sized
- } ToolFrontEndPref, **ToolFrontEndPrefHandle;
-
-
- // status structure passed around internally
-
- #define MAXFOLDERPATHS 128 // get real....
-
- typedef struct
- {
- CompilerParameterBlock *cpb;
- long linecount;
- short numFolderPaths;
- struct
- {
- short vRefNum;
- long dirID;
- Handle path;
- } folderPaths[MAXFOLDERPATHS];
- struct ScannerStatus *scanStatus;
- } ToolFrontEndStatus;
-
-
- #pragma options align=reset
-
-
- #endif
-
-